package com.caltco.cargo.ops.common.api;




/**
 * @program: agilefast-framework
 * @description: 分页返回对象
 * @author: yehao
 * @create: 20207-22 17:22
 **/

public class CommonPage<T> {


    private T items;
    private Long total;


    public <T> CommonPage() {
        this.total = 0L;
    }

    public T getItems() {
        return items;
    }

    public void setItems(T items) {
        this.items = items;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public CommonPage<T> setData(T items,Long total) {
        this.items = items;
        this.total = total;
        return this;
    }
}
